<template>
  <table class="table table-bordered table-stripped" border="1">
    <!-- 表格主体区域 -->
    <tbody>
      <tr v-for="obj in arr" :key="obj.id">
        <!-- <td>{{ obj.name }}</td>
        <td>{{ obj.age }}</td>
        <td>{{ obj.gender }}</td> -->
        <slot :row="obj" />
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  name: 'MyTable',
  props: {
    arr: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style scoped lang="scss">
.my-goods-list {
  .badge {
    margin-right: 5px;
  }
}
</style>
